﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Contract.aspx.cs" EnableEventValidation="false"
    Inherits="WMS6.Web.Billing.Contract" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Contract</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <link rel="Stylesheet" href="../Js/UpLoad/uploadify.css" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript" src="../Js/UpLoad/swfobject.js"></script>

    <script type="text/javascript" src="../Js/UpLoad/jquery.uploadify.min.js"></script>

    <script type="text/javascript">
    
    
          $(document).ready(function() {
            $("#uploadify").uploadify({
                'uploader': '../Js/UpLoad/uploadify.swf',
                'script': '../Common/JQUpLoad.aspx?type=ATTACHMENTS',
                'cancelImg': '../Js/UpLoad/cancel.png',
                'folder': 'upload',
                'queueID': 'fileQueue',
                'auto': false,
                'multi': false, //是否支持多文本       
                'onComplete': function(event, queueID, fileObj, response, data) 
                {     
                  document.getElementById('hdnResponse').value=response;
                 __doPostBack("SaveAttach","");
                // alert(event+"1"); alert(queueID+"2"); alert(fileObj+"3"); alert(response+"4");alert(data+"5");
                // document.getElementById('hdnImgName').value=response;   
                // document.getElementById('txtUserDefine9').value=response;
                // document.getElementById('imgReportTitle').src='../Upload/OwnerLogo/'+response;
                }
            });
        });  
    
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        } 
        //弹出窗口选择货主
        function selectOwner() {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID', 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        function confirmMsg(code) {
            if (code == "F9110_001") {
                if (confirm('<%=GetGlobalMsgResource("F9110_001") %>')) {
                    return true;
                }
                else {
                    return false;
                }
            }
        }    
        
        function  fileDownload(fileName,fullPath)
        {
            document.getElementById('hdnfileName').value=fileName;
            document.getElementById('hdnfullPath').value=fullPath;
             __doPostBack("DownloadAttach","");
            
        }  
    </script>

</head>
<body>
    <form id="F9011" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblOwner" runat="server" CssClass="label_header" Text="合同" meta:resourcekey="lblOwner"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"
                            Enabled="False" OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnNew%>"
                            Enabled="False" AccessKey="n" OnClick="btnNew_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnSave%>"
                            Enabled="False" AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDelete%>"
                            Enabled="False" AccessKey="d" OnClientClick="javascript:if(confirmMsg('F9110_001')) return true;else return false;"
                            OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"
                            Enabled="False" AccessKey="c" OnClick="btnCopy_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnAudit" runat="server" CssClass="button" Text="审核" Enabled="False"
                            AccessKey="c" OnClick="btnAudit_Click" meta:resourcekey="btnAudit" />
                    </td>
                    <td>
                        <asp:Button ID="btnRevertAudit" runat="server" CssClass="button" Text="反审核" Enabled="False"
                            AccessKey="c" OnClick="btnRevertAudit_Click"  meta:resourcekey="btnRevertAudit"/>
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,4)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">基本信息</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL2">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,4)"
                        id="divM2">
                        <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">票据</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR2">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL3">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,4)"
                        id="divM3">
                        <asp:Label ID="one3" CssClass="navigationlabel" runat="server">包仓明细</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR3">
                        </div>
                    </div>
                    <div style="float: left; width: 8px;">
                        <div class="tabL_1" id="divL4">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,4)"
                        id="divM4">
                        <asp:Label ID="one4" CssClass="navigationlabel" runat="server">附件预览</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR_1" id="divR4">
                        </div>
                    </div>
                </div>
                </div>
                <div id="div_content">
                    <div id="con_one_1" style="display: block;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblContractID" runat="server" CssClass="label" Text="合同编号" meta:resourcekey="lblContractID"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblOwnerID" runat="server" CssClass="label" Text="货主" meta:resourcekey="lblOwnerID"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblDescr" runat="server" CssClass="label" Text="描述" meta:resourcekey="lblDescr"></asp:Label>
                                </td>
                                <td width="180">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtContractID" runat="server" CssClass="textbox" MaxLength="20"
                                        meta:resourcekey="txtContractID"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" meta:resourcekey="txtOwnerID"></asp:TextBox><img
                                        src="../Images/icon_find.gif" id="imgOwnerID" runat="server" alt="select one item"
                                        class="img" onclick="selectOwner();" />
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDescr" runat="server" CssClass="textbox" MaxLength="20" meta:resourcekey="txtDescr"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblContractType" runat="server" CssClass="label" Text="合作类型" meta:resourcekey="lblContractType"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblSettleAccount" runat="server" CssClass="label" Text="结算方式" meta:resourcekey="lblSettleAccount"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblPayment" runat="server" CssClass="label" Text="付费金额" meta:resourcekey="lblPayment"></asp:Label>
                                </td>
                                <td width="180">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:DropDownList ID="ddlContractType" runat="server" CssClass="mediumselectbox"
                                        meta:resourcekey="ddlContractType">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlSettleAccount" runat="server" CssClass="mediumselectbox"
                                        meta:resourcekey="ddlSettleAccount">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtPayment" runat="server" CssClass="textbox" MaxLength="10" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')"
                                        meta:resourcekey="txtPayment"></asp:TextBox>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblStartTime" runat="server" CssClass="label" Text="开始时间" meta:resourcekey="lblStartTime"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblEndTime" runat="server" CssClass="label" Text="结束时间" meta:resourcekey="lblEndTime"></asp:Label><span
                                        class="must_input">*</span>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblDeposit" runat="server" CssClass="label" Text="保证金" meta:resourcekey="lblDeposit"></asp:Label>
                                </td>
                                <td width="180">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtStartTime" runat="server" CssClass="textbox" meta:resourcekey="txtStartTime"></asp:TextBox><img
                                        src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtStartTime);" />
                                </td>
                                <td>
                                    <asp:TextBox ID="txtEndTime" runat="server" CssClass="textbox" meta:resourcekey="txtEndTime"></asp:TextBox><img
                                        src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtEndTime);" />
                                </td>
                                <td>
                                    <asp:TextBox ID="txtDeposit" runat="server" CssClass="textbox" MaxLength="10" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')"
                                        meta:resourcekey="txtDeposit"></asp:TextBox>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblWhLoad" runat="server" CssClass="label" Text="库房荷载" meta:resourcekey="lblWhLoad"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblManageType" runat="server" CssClass="label" Text="管理形式" meta:resourcekey="lblManageType"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblOverdueRent" runat="server" CssClass="label" Text="逾期支付租金(天)" meta:resourcekey="lblOverdueRent"></asp:Label>
                                </td>
                                <td width="180">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:TextBox ID="txtWhLoad" runat="server" CssClass="textbox" MaxLength="20" onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')"
                                        meta:resourcekey="txtWhLoad"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:DropDownList ID="ddlManageType" runat="server" CssClass="mediumselectbox" meta:resourcekey="ddlManageType">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtOverdueRent" runat="server" CssClass="textbox" MaxLength="10"
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" meta:resourcekey="txtOverdueRent"></asp:TextBox>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td width="360px" colspan="2">
                                    <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblDepartmentID" runat="server" CssClass="label" Text="部门"></asp:Label>
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td width="360px" colspan="2" rowspan="3">
                                    <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                        meta:resourcekey="txtRemark"></asp:TextBox>
                                </td>
                                <td width="180">
                                    <asp:DropDownList ID="ddlDepartmentID" runat="server" CssClass="mediumselectbox">
                                    </asp:DropDownList>
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td width="180">
                                    <asp:CheckBox ID="chkIsAudit" runat="server" CssClass="checkbox" Enabled="false"
                                        Text="是否审核" />&nbsp;&nbsp;&nbsp;
                                    <asp:CheckBox ID="chkIsActive" runat="server" Checked="True" CssClass="checkbox"
                                        meta:resourcekey="chkIsActive" Text="是否启用" />
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                    <input type="file" name="uploadify" id="uploadify" />
                                    <a runat="server" onserverclick="SaveAttach_Click" id="SaveAttach"></a><a runat="server"
                                        onserverclick="DownloadAttach_Click" id="DownloadAttach"></a>
                                </td>
                                <td width="180">
                                </td>
                            </tr>
                            <tr>
                                <td width="180" colspan="2">
                                    <div id="fileQueue">
                                    </div>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_2" style="display: none;">
                        <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td width="180">
                                    <asp:Label ID="lblCostTypes" runat="server" CssClass="label" Text="费用类型" meta:resourcekey="lblCostTypes"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblCost" runat="server" CssClass="label" Text="费用" meta:resourcekey="lblCost"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblTaxGroup" runat="server" CssClass="label" Text="税组" meta:resourcekey="lblTaxGroup"></asp:Label>
                                </td>
                                <td width="180">
                                    <asp:Label ID="lblGeneralLedger" runat="server" CssClass="label" Text="总账分配" meta:resourcekey="lblGeneralLedger"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label1" runat="server" CssClass="label" Text="单据最低进货处理费用" meta:resourcekey="Label1"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInBoundCharge" runat="server" CssClass="textbox" MaxLength="20"
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" meta:resourcekey="txtLowestInBoundCharge"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInBoundTagGroup" runat="server" CssClass="textbox" MaxLength="20"
                                        meta:resourcekey="txtLowestInBoundTagGroup"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInBoundGenralLedger" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestInBoundGenralLedger"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label2" runat="server" CssClass="label" Text="单据最低出货处理费用" meta:resourcekey="Label2"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestOutBoundCharge" runat="server" CssClass="textbox" MaxLength="20"
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" meta:resourcekey="txtLowestOutBoundCharge"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestOutBoundTagGroup" runat="server" CssClass="textbox" MaxLength="20"
                                        meta:resourcekey="txtLowestOutBoundTagGroup"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestOutBoundGenralLedger" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestOutBoundGenralLedger"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label4" runat="server" CssClass="label" Text="单据最低初始存放期收费" meta:resourcekey="Label4"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInitialStorageCharge" runat="server" CssClass="textbox"
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" MaxLength="20" meta:resourcekey="txtLowestInitialStorageCharge"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInitialStorageTagGroup" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestInitialStorageTagGroup"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInitialStorageGenralLedger" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestInitialStorageGenralLedger"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label5" runat="server" CssClass="label" Text="进货处理最低账单费用" meta:resourcekey="Label5"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInBoundBillCharge" runat="server" CssClass="textbox" MaxLength="20"
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" meta:resourcekey="txtLowestInBoundBillCharge"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInBoundBillTagGroup" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestInBoundBillTagGroup"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInBoundBillGenralLedger" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestInBoundBillGenralLedger"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label8" runat="server" CssClass="label" Text="初始存放期最低账单费用" meta:resourcekey="Label8"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInitialStorageBillCharge" runat="server" CssClass="textbox"
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" MaxLength="20" meta:resourcekey="txtLowestInitialStorageBillCharge"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInitialStorageBillTagGroup" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestInitialStorageBillTagGroup"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestInitialStorageBillGenralLedger" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestInitialStorageBillGenralLedger"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label6" runat="server" CssClass="label" Text="循环存放期最低账单费用" meta:resourcekey="Label6"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestRecurringStorageBillCharge" runat="server" CssClass="textbox"
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" MaxLength="20" meta:resourcekey="txtLowestRecurringStorageBillCharge"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestRecurringStorageBillTagGroup" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestRecurringStorageBillTagGroup"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtLowestRecurringStorageBillGenralLedger" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtLowestRecurringStorageBillGenralLedger"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="Label7" runat="server" CssClass="label" Text="全部账单最低费用" meta:resourcekey="Label7"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAllBillsLowestCharge" runat="server" CssClass="textbox" MaxLength="20"
                                        onblur="Javascript:dataVer._Is123OrX(this,'lblMsg')" meta:resourcekey="txtAllBillsLowestCharge"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAllBillsLowestTagGroup" runat="server" CssClass="textbox" MaxLength="20"
                                        meta:resourcekey="txtAllBillsLowestTagGroup"></asp:TextBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtAllBillsLowestGenralLedger" runat="server" CssClass="textbox"
                                        MaxLength="20" meta:resourcekey="txtAllBillsLowestGenralLedger"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_3" style="display: none; overflow-x: auto; overflow-y: hidden;">
                        <table width="1080px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <table>
                                        <tr>
                                            <td>
                                                <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnAddDetail%>"
                                                    Enabled="False" OnClientClick="javascript:if(document.getElementById('hdnContractID').value == ''){ SethdnPageQty('hdnPageQty');  if(confirmMsg('F4100_038')) return true; else return false;}"
                                                    OnClick="btnAddDetail_Click" />
                                            </td>
                                            <td>
                                                <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnDeleteDetail%>"
                                                    Enabled="False" OnClick="btnDeleteDetail_Click" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr style="height: 10px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div>
                                        <asp:GridView ID="gvContract" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                            DataKeyNames="ContractID,LineID" AllowPaging="True" CssClass="gridview" Width="800px"
                                            OnRowDataBound="gvContract_RowDataBound" OnInit="gvContract_Init" OnSorting="gvContract_Sorting"
                                            meta:resourcekey="gvReceiptDetail">
                                            <FooterStyle CssClass="GridViewFooterStyle" />
                                            <RowStyle CssClass="GridViewRowStyle" />
                                            <HeaderStyle CssClass="GridViewHeaderStyle" />
                                            <PagerStyle CssClass="GridViewPageStyle" />
                                            <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                            <Columns>
                                                <asp:TemplateField meta:resourcekey="TemplateField">
                                                    <HeaderTemplate>
                                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('9011','gvContract');"
                                                            onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                        <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvContract');"
                                                            meta:resourcekey="CheckBox1" />
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                        <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvContract');"
                                                            meta:resourcekey="CheckBox2" />
                                                    </FooterTemplate>
                                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                                </asp:TemplateField>
                                                <asp:BoundField HeaderText="序号" FooterText="序号" Visible="false" meta:resourcekey="No">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="行号" SortExpression="LineID"
                                                    meta:resourcekey="ReceiptLineID">
                                                    <ItemStyle CssClass="GridViewRowWidth_50" />
                                                </asp:BoundField>
                                                <asp:TemplateField HeaderText="明细" FooterText="明细">
                                                    <ItemTemplate>
                                                        <a href='<%# FormatUrl("RentWhDetail.aspx?type=edit&from=list&ID={0}&LineID={1}",Eval("ContractID").ToString(),Eval("LineID").ToString()) %>'
                                                            target="_self">
                                                            <img src="../Images/icon_edit.gif" class="img" style="border: none 0px blue;" alt="receipt" /></a>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_50" HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="Location" HeaderText="位置" FooterText="位置" SortExpression="Location">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="ZoneNO" HeaderText="储区" FooterText="储区" SortExpression="ZoneNO">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="管理费" HeaderText="管理费" SortExpression="ManageAmount">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblManageAmount" runat="server" Text='<%# GetPreferenceDigit(Eval("ManageAmount").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="Area" HeaderText="面积" FooterText="面积" SortExpression="Area">
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:BoundField>
                                                <asp:TemplateField FooterText="单价" HeaderText="单价" SortExpression="UnitPrice">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblUnitPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("UnitPrice").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="租金合计" HeaderText="租金合计" SortExpression="TotalPrice">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblTotalPrice" runat="server" Text='<%# GetPreferenceDigit(Eval("TotalPrice").ToString()) %>'></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                                </asp:TemplateField>
                                                <asp:TemplateField FooterText="备注" HeaderText="备注" SortExpression="Remark">
                                                    <ItemTemplate>
                                                        <asp:Label ID="lblRemark" runat="server" Text='<%# Eval("Remark").ToString() %>'
                                                            meta:resourcekey="lblRemark"></asp:Label>
                                                    </ItemTemplate>
                                                    <ItemStyle CssClass="GridViewRowWidth_200" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </div>
                                </td>
                                <td>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="con_one_4" style="display: none; overflow-x: auto; overflow-y: hidden;">
                        <table width="1080px" style="display: block; margin-left: 10px; margin-top: 10px;">
                            <tr>
                                <td>
                                    <div id="UpLoadDiv" runat="server">
                                    </div>
                                </td>
                            </tr>
                            <tr style="height: 30px;">
                                <td>
                                </td>
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <input type="hidden" id="hdnFlag" runat="server" />
                <input type="hidden" id="hdnCopyFlag" runat="server" />
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnLineID" runat="server" />
    <input type="hidden" id="hdnAttachLineID" runat="server" />
    <input type="hidden" id="hdnAttachID" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdnContractID" runat="server" />
    <input type="hidden" id="hdnImgpath" runat="server" />
    <input type="hidden" id="hdnImgName" runat="server" />
    <input type="hidden" id="hdnResponse" runat="server" />
    <input type="hidden" id="hdnfileName" runat="server" />
    <input type="hidden" id="hdnfullPath" runat="server" />
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
		 hiddenCalendarDiv();
		//-->
</script>

